home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / archive / cx201e.arj / CXSUB.H < prev    next >
C/C++ Source or Header  |  1994-03-01  |  1KB  |  63 lines

  1. /*
  2.    CXSUB interface.
  3.    Copyright (c) 1990-1994 Eugene Nelson, Four Lakes Computing.
  4. */
  5.  
  6. #ifndef _CXSUB_
  7. #define _CXSUB_
  8. /*-------------------------------------------------------------------------*/
  9. #include "cx.h"
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15. #define CXSUB_ERR_OPENS       (1)
  16. #define CXSUB_ERR_OPEND       (2)
  17. #define CXSUB_ERR_NOMEM       (3)
  18. #define CXSUB_ERR_READ        (4)
  19. #define CXSUB_ERR_WRITE       (5)
  20. #define CXSUB_ERR_CLOSE       (6)
  21. #define CXSUB_ERR_INVALID     (7)
  22.  
  23. char  *cx_error_message(
  24.          CXINT err);
  25.  
  26. CXINT cx_compress_ofile(
  27.          int   ofile,
  28.          int   ifile,
  29.          CXINT method,
  30.          CXINT bsize,
  31.          CXINT tsize,
  32.          int   (*callback)(void *),
  33.          void  *p);
  34.  
  35. CXINT cx_compress_file(
  36.          char  *dst,
  37.          char  *src,
  38.          CXINT method,
  39.          CXINT bsize,
  40.          CXINT tsize,
  41.          int   (*callback)(void *),
  42.          void  *p);
  43.  
  44. CXINT cx_decompress_ofile(
  45.          int   ofile,
  46.          int   ifile,
  47.          int   (*callback)(void *),
  48.          void  *p);
  49.  
  50. CXINT cx_decompress_file(
  51.          char  *dst,
  52.          char  *src,
  53.          int   (*callback)(void *),
  54.          void  *p);
  55.  
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60. /*-------------------------------------------------------------------------*/
  61. #endif
  62.  
  63.